﻿using System.Web.Mvc;
using Journal.Admin.Presentation.IPresentationServices;
using Journal.Admin.Presentation.Models.MenuModels;

namespace Journal.Admin.Presentation.Controllers
{
    public class MenuController : Controller
    {
        private readonly IMenuPresentationService menuPresentationService;

        public MenuController(IMenuPresentationService menuPresentationService)
        {
            this.menuPresentationService = menuPresentationService;
        } 

        public ActionResult GetSectionMenu()
        {
            SectionMenuModel model = menuPresentationService.GetSectionMenu();
            return View("UserControls/SectionMenu/SectionMenuContol", model);
        }
    }
}